<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>热销店铺排名</title>
<body class="withvernav">
<style type="text/css">
	thead tr td{
		vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000 !important ; text-align: center;
	}
.stdtable tbody tr td{padding:3px 5px;}
</style>
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">热销店铺排名<span class="pagedesc" style="font-size:14px;">(该统计结果包括直发与FBA订单数据)</span></h1>
      
     
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
          <!--搜索栏-->
           
    <form class="stdform stdform2" method="get" action="/report/salesShopRank">
      <div class="tableoptions">
      开始时间：
       <input type="text"  name="starttime" value="{{$starttime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> 
       <span style="display:none">所属平台: 
       <select id="platform" name="platform">
            <option value="">-请选择-</option>
            <option value="ebay">ebay</option>
            <option value="Amazon">Amazon</option>
            <option value="1号店">1号店</option>
            <option value="淘宝">淘宝</option>
            <option value="Tmall">Tmall</option>
            <option value="ioffer">ioffer</option>
        </select>
       &nbsp;&nbsp;</span>
       排序方式：<select name="orderdata" class="selection" style="width:100px;">
        <option value="1" {{if $orderdata==1}} selected{{/if}}>按销售额</option>
        <option value="2" {{if $orderdata==2}} selected{{/if}}>按订单量</option>
        <option value="3" {{if $orderdata==3}} selected{{/if}}>按销售数量</option>
        <option value="5" {{if $orderdata==5}} selected{{/if}}>按利润</option>
    </select>
        <button class="btn btn_orange btn_search radius50">Search</button>
         &nbsp;  &nbsp;</div>
    </form>
    <!--搜索栏结束-->

             <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
          
            <thead>
              <tr class="tableheader">
                <td height="20" bgcolor="#EEEEEE" align="center">序号</td>
                <td height="20" bgcolor="#EEEEEE" align="center">店铺名</td>
                <td height="20" bgcolor="#EEEEEE" align="center">销量</td>
                <td height="20" bgcolor="#EEEEEE" align="center">订单量</td>
                <td height="20" bgcolor="#EEEEEE" align="center">销售额</td>
                <td height="20" bgcolor="#EEEEEE" align="center">总成本</td>
                <td height="20" bgcolor="#EEEEEE" align="center">利润</td>
                <td height="20" bgcolor="#EEEEEE" align="center">利润率</td>
                <td height="20" bgcolor="#EEEEEE" align="center">订单平均价</td>
              </tr>
            </thead>
             {{foreach from=$list item=res key=key}}
            <tr>
              <td class="head0" align="center">{{$res.sortindex}}</td>
               <td class="head1" align="center">{{$res.shopname}}</td>
                <td class="head0" align="center">{{$res.sell_total}}</td>
                <td class="head1" align="center">{{$res.order_num}}</td>
                <td class="head1" align="center"><span class="head0">{{$res.goods_amount_total+$res.shipping_fee_total}}</span></td>
                <td class="head1" align="center">{{$res.costprice_total+$res.platform_fee_total + $res.payfee_total+$res.realexpress_fre}}
               <!-- <br>
                成  本{{$res.costprice_total}}
                平台费{{$res.platform_fee_total}}
                交易费{{$res.payfee_total}}
                运输费{{$res.realexpress_fre}}-->
                
                
                </td>
                <td class="head1" align="center">{{$res.goods_amount_total+ $res.shipping_fee_total-$res.costprice_total-$res.platform_fee_total-$res.payfee_total-$res.realexpress_fre}}</td>
                <td class="head1" align="center">{{$res.maoliv}}%</td>
                <td class="head1" align="center">{{$res.avg_price}}</td>
            </tr>
            {{/foreach}}
            <tr>
            <td class="head1" align="center"><B>合计</B></td>
              <td class="head1" align="center">&nbsp;</td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.sell_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.order_num}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_amount_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.costprice_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.lirun}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.lirun_avg}}%</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.avg_price}}</B></font></td>
            </tr>
          </table>
      </div></div>

</body>
</html>